package top.blackr.folivora.common.core.constants;

/**
 * redis key
 */
public interface RedisConstants {

    /**
     * 登录token
     */
    String TOKEN_CACHE_KEY = "token:login:";

    /**
     * 微信相关缓存
     */
    String WX_CACHE_KEY = "wx:config:";
    /**
     * 微信小程序accessToken
     */
    String WX_MINI_ACCESS_TOKEN = WX_CACHE_KEY + "mini:accessToken";

    /**
     * 用户相关缓存key
     */
    interface User {
        String USER_INFO_USERNAME = "login:userInfo:username:";
        String USER_INFO_ID = "login:userInfo:id:";
    }

}
